package com.easy.common.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easy.common.bean.Product;

import java.util.List;

public interface IProductService {

    Product insert(Product product);

    Product update(Product product);

    int delete(Integer id);

    Product getByID(Integer id);

    IPage<Product> getListByPage(Page page, Product product);

    List<Product> getList(Product product);

    /**
     * 上下架商品
     * @param
     * @return
     **/
    int setActive(Product product);

}
